<div class="page">
	<div class="layoutBox">
	<form method="post" action="__URL__/update/navTabId/__MODULE__" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxMenu)">
		<input type="hidden" name="id" value="{$vo.id}" >
		<input type="hidden" name="ajax" value="1">
		<input type="hidden" name="pid" value="{$vo.pid}">
		<div class="pageFormContent" layoutH="100">
			<div class="unit">
				<label><eq name="vo.level"  value="1">应用</eq><eq name="vo.level" value="2">模块</eq><eq name="vo.level"  value="3">操作</eq>名：</label>
				<input  name="name" type="text" class="required alphanumeric" value="{$vo.name}" size="40">
			</div>
			
			<div class="unit">
				<label>显示名：</label>
				<input  name="title" type="text" class="required" value="{$vo.title}" size="40">
			</div>
            
			<eq name="level" value="2">
			<div class="unit">
				<label>大菜单分组：</label>
				<select name="group_id" class="required">
					<option value="0">未分组</option>
                    <volist name="Think.config.ADMIN_BMENU" id="val">
                    <option value="{$key}" <eq name="key" value="$vo['group_id']">selected</eq>>{$val}</option>
                    </volist>
				</select>
			</div>
			<div class="unit">
				<label>模型：</label>
				<label><input type="checkbox" align="absbottom" name="is_model" value="1" onclick="copy_tableDiv.style.display=(!!this.checked)?'':'none'" <?php echo is_Model($vo['id'],0) ? ' checked' : '' ?> />是模型（如文章模型、图片模型等）</label>
			</div>
			<div class="unit" id="copy_tableDiv" style="display:<?php echo is_Model($vo['id'],0) ? '' : 'none' ?>">
                <label>复制表结构：</label>
                <select name="copy_table" id="copy_table">
                <?php echo PrintOption('',':-请选择-,Article_文章:文章表,Photo_图片:图片表,Video_视频:视频表,Music_音乐:音乐表'); ?>
                </select>
                <span>会删除原来的旧表再复制表结构，请谨慎操作</span>
			</div>
			</eq>
			
			<div class="unit">
				<label>状态：</label>
				<select name="status">
					<option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
					<option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
				</select>
			</div>
			
			<div class="unit">
				<label>序号：</label>
				<input name="sort" type="text" value="{$vo.sort}" size="40">
			</div>
			
			<div class="unit">
				<label>描 述：</label>
				<textarea name="remark"  rows="2" cols="50">{$vo.remark}</textarea>
			</div>
		</div>

		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
	</div>
</div>

